package com.imooc.o2o.entity;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@Table(name = "tb_shop_category")
public class ShopCategory implements Serializable {

	@Column(name = "shop_category_id")
	private Integer shopCategoryId;

	@Column(name = "shop_category_name")
	private String shopCategoryName;

	@Column(name = "shop_category_desc")
	private String shopCategoryDesc;

	@Column(name = "shop_category_img")
	private String shopCategoryImg;

	private Integer priority;

	@Column(name = "create_time")
	private java.util.Date createTime;

	@Column(name = "last_edit_time")
	private java.util.Date lastEditTime;

//	@Column(name = "parent_id")
//	private Integer parentId;
	//这个是上一级类别
	private ShopCategory parent;

}
